Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Interpolation Styles

Labels

ASCII
InterpolationStyle
Binary
intp ( = 0x696E7470 )

Interpolation Styles

None                0x00000000
Vertex              0x00000001
Pixel               0x00000002

Constant descriptions

None
No interpolation is to occur. The renderer is to apply each effect uniformly across a surface.
Vertex
The renderer is to interpolate values linearly across a verticed surface, using the values at the vertices.
Pixel
The renderer is to calculate a value of each effect for every pixel in the image.

Data Format

InterpolationStyleEnum              interpolationStyle
interpolationStyle
The value in this field must be one of these constants: None , Vertex , or Pixel .

Data Size

4

Description

A scene's interpolation style determines the method of interpolation a renderer uses when applying lighting or other shading effects to a surface. A value of None causes the surfaces of a model to have a faceted appearance; the other two values cause its surfaces to be rendered smoothly.

Parent Hierarchy

Shared, shape, style.

Parent Objects

None.

Child Objects

None.

Example

BeginGroup ( DisplayGroup ( ) )
    InterpolationStyle ( Vertex )
    Container (
        Triangle ( ... )
        VertexAttributeSetList ( ... )
        .
        .
        .
    )
EndGroup ( )

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |